<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mpayorderdivisionrecord.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mpayorderdivisionrecord.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '分账记录表',
                    name: 'Mpayorderdivisionrecord',
                    url: "/Mpayorderdivisionrecord/",
                    sortName: "id"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'id',title:'主键',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'merchantName',title:'商户名称',type:'string',width:120,align:'left'},
                       {field:'merchantCode',title:'商户编码',type:'string',width:120,align:'left'},
                       {field:'cal_division_amount',title:'计算该接收方的分账金额,单位分',type:'bigint',width:120,require:true,align:'left'},
                       {field:'division_profit',title:'账号快照》 配置的实际分账比例',type:'decimal',width:120,require:true,align:'left'},
                       {field:'relation_type_name',title:'账号快照》 当选择自定义时，需要录入该字段。 否则为对应的名称',type:'string',width:120,require:true,align:'left'},
                       {field:'relation_type',title:'账号快照》 分账关系类型（参考微信）， 如： SERVICE_PROVIDER 服务商等',type:'string',width:120,require:true,align:'left'},
                       {field:'acc_name',title:'账号快照》 分账接收账号名称',type:'string',width:120,require:true,align:'left'},
                       {field:'acc_no',title:'账号快照》 分账接收账号',type:'string',width:120,require:true,align:'left'},
                       {field:'acc_type',title:'账号快照》 分账接收账号类型: 0-个人 1-商户',type:'sbyte',width:120,require:true,align:'left'},
                       {field:'receiver_group_id',title:'账号快照》 组ID（便于商户接口使用）',type:'bigint',width:120,align:'left'},
                       {field:'mch_no',title:'商户号',type:'string',width:120,require:true,align:'left'},
                       {field:'isv_no',title:'服务商号',type:'string',width:120,align:'left'},
                       {field:'app_id',title:'应用ID',type:'string',width:120,require:true,align:'left'},
                       {field:'mch_name',title:'商户名称',type:'string',width:120,require:true,align:'left'},
                       {field:'mch_type',title:'类型: 1-普通商户, 2-特约商户(服务商模式)',type:'sbyte',width:120,require:true,align:'left'},
                       {field:'if_code',title:'支付接口代码',type:'string',width:120,require:true,align:'left'},
                       {field:'pay_order_id',title:'系统支付订单号',type:'string',width:120,require:true,align:'left'},
                       {field:'pay_order_channel_order_no',title:'支付订单渠道支付订单号',type:'string',width:120,align:'left'},
                       {field:'pay_order_amount',title:'订单金额,单位分',type:'bigint',width:120,require:true,align:'left'},
                       {field:'pay_order_division_amount',title:'订单实际分账金额, 单位：分（订单金额 - 商户手续费 - 已退款金额）',type:'bigint',width:120,require:true,align:'left'},
                       {field:'batch_order_id',title:'系统分账批次号',type:'string',width:120,require:true,align:'left'},
                       {field:'channel_batch_order_id',title:'上游分账批次号',type:'string',width:120,align:'left'},
                       {field:'state',title:'状态: 0-待分账 1-分账成功（明确成功）, 2-分账失败（明确失败）, 3-分账已受理（上游受理）',type:'sbyte',width:120,require:true,align:'left'},
                       {field:'channel_resp_result',title:'上游返回数据包',type:'string',width:120,align:'left'},
                       {field:'receiver_id',title:'账号快照》 分账接收者ID',type:'bigint',width:120,require:true,align:'left'},
                       {field:'receiver_alias',title:'接收者账号别名',type:'string',width:120,align:'left'},
                       {field:'record_id',title:'分账记录ID',type:'bigint',width:120,require:true,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
